const state = {
	bannerList:[],
	noticeList:[],
	noticeDetail:{
		noticeId: "",
		noticeTitle: "",
		noticeContent: "",
		noticePic: "",
		creator: "",
		createtime: "",
		updatetime: "",
		states: ""
	}
}

const mutations = {
	setBannerList(state,list){
    state.bannerList = list
  },
	setNoticeList(state,payload){
		if(payload.type==="initial"){
			state.noticeList = payload.data
		}else{
			state.noticeList = [
				...state.noticeList,
				...payload.data
			]
		}
	},
	setNoticeDetail(state,detail){
		state.noticeDetail = detail
	}
}

const actions = {

}

const getters = {

}

export default {
	namespaced: true,
	state,
	mutations,
	actions,
	getters
}